Thank you very much Claude.
I implemented email recovery like this:
extension EKParticipant {
func email() -> String{
var dict: [String: String] = [:]
for token1 in self.description.components(separatedBy: ";") {
let tokens = token1.components(separatedBy: "=")
if tokens.count == 2 {
dict[tokens[0].trimmingCharacters(in: .whitespaces)] = tokens[1].trimmingCharacters(in: .whitespaces)
}
}
return dict["email"] ?? "no email"
}
}
Topic:
App & System Services
SubTopic:
General
Tags: